package com.lanou.service;/*
 * @author 马继耿~
 * @date 2023/10/27 15:15
 * @version 1.0
 * */

import com.lanou.mapper.MJG_AddyajinMapper;
import com.lanou.pojo.PaymentDepositEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MJG_AddyajinServiceImpl implements MJG_AddyajinService{
    @Autowired
   private MJG_AddyajinMapper mjg_addyajinMapper;
    @Override
    public void add(PaymentDepositEntity paymentDepositEntity) {
        // 获取当前时间戳
        long timestamp = System.currentTimeMillis();
        paymentDepositEntity.setId(String.valueOf(timestamp));
        paymentDepositEntity.setResourceId(String.valueOf(timestamp));
        paymentDepositEntity.setBlock("01");
        paymentDepositEntity.setFeeItemId("1471683203705188353");
        paymentDepositEntity.setRefundType(" ");
        paymentDepositEntity.setOperateUser("1");
        paymentDepositEntity.setPayNo("PAY2022062800201");
        paymentDepositEntity.setRefundNo(" ");
        paymentDepositEntity.setState("refunded");
//        // 将时间戳转换为Date对象
//        Date date = new Date(timestamp);
        mjg_addyajinMapper.add(paymentDepositEntity);

    }
}
